#include "WiFi.h"

// Set WiFi name and password
const char* ssid = "ssid";
const char* password = "password";

void setup() {
  // Set the baud rate to 115200
  Serial.begin(115200);

  // Connect to WiFi
  Serial.println("开始连接 Wi-Fi ！");
  WiFi.begin(ssid, password);

  // Wait for WiFi connection
  while(WiFi.status() != WL_CONNECTED){ 
    Serial.println("Wi-Fi 连接中。。。");
    delay(500);
  } 

  // Print the local IP address
  Serial.println("Wi-Fi 连接成功！");
  Serial.println(WiFi.localIP());
}

void loop() {
  // put your main code here, to run repeatedly:

}
